// =============================================================================
//  Spangles Analyzer
//
//  Copyright(c) 2008
//  See LICENSE.txt for licensing information.
// =============================================================================

package com.google.spangles.main;

import java.io.IOException;

import com.google.spangles.domain.GameState;
import com.google.spangles.view.Renderer;
import com.google.spangles.view.Visualization;
import com.google.spangles.view.renderers.ShellRenderer;
import com.google.spangles.view.service.VisualizationService;
import com.google.spangles.view.service.impl.VisualizationServiceImpl;

/**
 * (Description)
 * (Any invariants [conditions that are always true] )
 * (Usage instructions, and/or examples)
 * (TODOs, ASSUMPTIONs, etc.)
 * (Known Bugs)
 * (Concurrency strategy - not thread safe or how it's thread safe)
 * 
 * @author Chris
 */
public class Display
{

   /**
    * (Description - what the method does and why)
    * (Visibility decision, if not obvious)
    * (Pre/Post Conditions)
    * (Usage examples)
    * (Algorithmic notes)
    * (Concurrency issues)
    * @param args
    * @throws IOException 
    */
   public static void main(String[] args) throws IOException
   {
      GameState gs = GameState.createNew();      
      VisualizationService vs = new VisualizationServiceImpl();
      Visualization v = vs.visualize(gs);
      
      Renderer r = new ShellRenderer();
      r.render(v);
   }

}
